﻿@model RightControl.WebApp.WebSiteModel
@{
    ViewBag.Title = "Index";
    Layout = "~/Areas/Admin/Views/Shared/_LayoutSinglePage.cshtml";
}

<style type="text/css">

    .layui-form-label {
        width: 100px;
    }

    .layui-input-block {
        margin-left: 130px;
    }

    .layui-textarea {
        min-height: 90px;
    }
</style>

<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-header">网站设置</div>
                <div class="layui-card-body" pad15>
                    <form class="layui-form" wid100 lay-filter="" action="/SysSet/WebSite/Index" method="post">
                        <div class="layui-form-item">
                            <label class="layui-form-label">网站名称</label>
                            <div class="layui-input-block">
                                @Html.TextBoxFor(x => x.SiteName, new { @class = "layui-input" })
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">网站域名</label>
                            <div class="layui-input-block">
                                @Html.TextBoxFor(x => x.SiteDomain, null, new Dictionary<string, object> { { "class", "layui-input" }, { "lay-verify", "url" } })
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">缓存时间</label>
                            <div class="layui-input-inline" style="width: 80px;">
                                @Html.TextBoxFor(x => x.CacheTime, null, new Dictionary<string, object> { { "class", "layui-input" }, { "lay-verify", "number" } })
                            </div>
                            <div class="layui-input-inline layui-input-company">分钟</div>
                            <div class="layui-form-mid layui-word-aux">本地开发一般推荐设置为 0，线上环境建议设置为 10。</div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">最大文件上传</label>
                            <div class="layui-input-inline" style="width: 80px;">
                                @Html.TextBoxFor(x => x.MaxFileUpload, null, new Dictionary<string, object> { { "class", "layui-input" }, { "lay-verify", "number" } })
                            </div>
                            <div class="layui-input-inline layui-input-company">KB</div>
                            <div class="layui-form-mid layui-word-aux">提示：1 M = 1024 KB</div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">上传文件类型</label>
                            <div class="layui-input-block">
                                @Html.TextBoxFor(x => x.UploadFileType, new { @class = "layui-input" })
                            </div>
                        </div>
                        <div class="layui-form-item layui-form-text">
                            <label class="layui-form-label">首页标题</label>
                            <div class="layui-input-block">
                                @Html.TextAreaFor(x => x.HomeTitle, new { @class = "layui-textarea" })
                            </div>
                        </div>
                        <div class="layui-form-item layui-form-text">
                            <label class="layui-form-label">META关键词</label>
                            <div class="layui-input-block">
                                @Html.TextAreaFor(x => x.MetaKey, new { @class = "layui-textarea", @placeholder = "多个关键词用英文状态 , 号分割" })
                            </div>
                        </div>
                        <div class="layui-form-item layui-form-text">
                            <label class="layui-form-label">META描述</label>
                            <div class="layui-input-block">
                                @Html.TextAreaFor(x => x.MetaDescribe, new { @class = "layui-textarea" })
                            </div>
                        </div>
                        <div class="layui-form-item layui-form-text">
                            <label class="layui-form-label">版权信息</label>
                            <div class="layui-input-block">
                                @Html.TextAreaFor(x => x.CopyRight, new { @class = "layui-textarea" })
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-input-block">
                                <button class="layui-btn fl txt-center" lay-submit lay-filter="set_website">确认保存</button>
                                <div class="div-msg fl" style="float:left;">@ViewBag.Msg</div>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>